package com.bh.fallback;

import com.bh.bean.User;
import com.bh.remote.UserRemoteClient;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Wang
 * @version 1.0
 * @date 2022/6/9 21:02
 */
@Component
public class UserFallBack implements UserRemoteClient {
    @Override
    public Map queryUser(String id) {
        Map map=new HashMap();
        map.put("code",0);
        map.put("msg","降级处理");
        return map;
    }

    @Override
    public void login(String username, String password) {

    }

    @Override
    public void testGetMap(Map map) {

    }

    @Override
    public void testPostMap(Map map) {

    }

    @Override
    public void testPostUser(User user) {

    }

    @Override
    public void testStringQueryMap(Map map) {

    }

    @Override
    public void testStringQueryUser(User user) {

    }
}
